//
//  Kratos_RegisterVC.m
//  kratos_framework_Example
//
//  Created by 7yao.top on 2018/10/29.
//  Copyright © 2018年 kratos_framework. All rights reserved.
//

#import "Kratos_RegisterVC.h"
#import "Kratos_RegisiterView.h"
#import "k_const.h"
#import "Kratos_RegisterVCPresenter_Kra.h"
#import "IQKeyboardManager.h"

@interface Kratos_RegisterVC ()
@property (nonatomic,strong) Kratos_RegisiterView *Kra_regisiterView;
@property (nonatomic,strong) Kratos_RegisterVCPresenter_Kra *Kra_presenter;
@end

@implementation Kratos_RegisterVC

- (void)viewDidLoad {
    [super viewDidLoad];
//      self.view.backgroundColor = [UIColor whiteColor];
    
    [self.Kra_coverView addSubview:self.Kra_regisiterView];
    [self accountViewLayout];
    
    [self.Kra_presenter Kratos_usageLogic];

}

- (void)viewDidDisappear:(BOOL)animated
{
    [super viewDidAppear:animated];
}

- (Kratos_RegisiterView *)Kra_regisiterView
{
    if (_Kra_regisiterView == nil) {
        _Kra_regisiterView = [[Kratos_RegisiterView alloc]init];
        _Kra_regisiterView.backgroundColor = [UIColor whiteColor];
    }
    return _Kra_regisiterView;
}
- (void)doRotateAction:(NSNotification *)notification {
    [self accountViewLayout];
}


- (Kratos_RegisterVCPresenter_Kra *)Kra_presenter
{
    if (_Kra_presenter == nil) {
        _Kra_presenter = [[Kratos_RegisterVCPresenter_Kra alloc] initWithView:self.Kra_regisiterView];
        [_Kra_presenter setViewController:self];
    }
    return _Kra_presenter;
}

- (void)accountViewLayout
{
    layoutView(self.Kra_regisiterView)

}






@end
